set(LLVM_LINK_COMPONENTS
  Support
  )

add_llvm_tool(circt-opt
 circt-opt.cpp
)
llvm_update_compile_flags(circt-opt)
target_link_libraries(circt-opt
  PRIVATE
  CIRCTCalyx
  CIRCTFIRRTLTransforms
  CIRCTESI
  CIRCTFIRRTL
  CIRCTFIRRTLToHW
  CIRCTHandshakeOps
  CIRCTHandshakeToFIRRTL
  CIRCTLLHD
  CIRCTLLHDToLLVM
  CIRCTLLHDTransforms
  CIRCTMSFT
  CIRCTHW
  CIRCTHWToLLHD
  CIRCTSeq
  CIRCTStandardToHandshake
  CIRCTStandardToStaticLogic
  CIRCTStaticLogicOps
  CIRCTSV
  CIRCTSVTransforms
  CIRCTTransforms

  MLIRIR
  MLIRLLVMIR
  MLIRMemRef
  MLIROptLib
  MLIRParser
  MLIRStandard
  MLIRSupport
  MLIRTransforms
  )
